﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CC;

namespace RFMS
{
    public partial class NieuweOrder : Form
    {
        private string _tafelnaam;
        private OrderBeheer _order;

        public NieuweOrder(string _tafelnaam)
        {
            InitializeComponent();
            FormBorderStyle = FormBorderStyle.None;
            WindowState = FormWindowState.Maximized;
            TopMost = true;
            this._tafelnaam = _tafelnaam;
            _order = new OrderBeheer();
        }

        private void buttonNieuweOrder_Click(object sender, EventArgs e)
        {
            _order.NieuweOrder(textBoxKlantnaam.Text, this._tafelnaam);
            this.Close();
        }
    }
}
